import { PrismaClient } from '@prisma/client';
import { injectable, inject } from 'inversify';

@injectable()
export class PrismaDB {
	prisma: PrismaClient;
	// 构造函数，注入PrismaClient
	constructor(@inject('PrismaClient') PrismaClient: () => PrismaClient) {
		// 注入prisma客户端
		this.prisma = PrismaClient();
	}
}
